/**
* 版权声明：厦门睿商网络科技有限公司 版权所有 违者必究
* 日    期：2020-03-03
*/
package com.rzico.market.controller;

import com.rzico.base.BaseController;
import com.rzico.base.CommResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.Map;

/**
 * 网易严选回调接口
 *
 * @author Rzico Boot
 * @version 1.0
 * @date 2020-03-03
 */

@Api(description = "网易严选回调接口")
@RestController
@RequestMapping("/yanxuan")
public class YanXuanController extends BaseController {


    /**
     * 回调
     *
     * @return
     */
    @ApiOperation("回调")
    @GetMapping("/callback")
    @ApiImplicitParams({@ApiImplicitParam(name = "mchId", value = "商户id", dataType = "String", paramType = "query")
    })
    public CommResult<Map<String, Object>> list(HttpServletRequest request, HttpServletResponse response) {
        Map<String, Object> result = new HashMap<String, Object>();
        result.put("resultCode", "0000");
        result.put("resultMessage", "success");

        return CommResult.success(result);
    }


}
